<script language="javascript">
//$(".linebox tr:odd").addClass('even');
$(function(){
	$("#co{$uniqid}").linkbutton({
		iconCls:'icon-cancel'
	});
});

function onCloseSmsDetail(idd){
	cancel['Sendsms'].dialog('refresh');
	cancel['SmsDetail'].dialog('destroy');
	cancel['SmsDetail'].dialog('close');
	cancel['SmsDetail'] = null;
}

var atit;
function showTab(idn,idd){
	var n = '项目';
	var u = 'Project';
	tit = n+'-'+idn;
	var ishas = $("#rightTabs").tabs('exists',atit);
	if(!ishas){
		//alert('__GROUP__/'+u+'/detail/id/'+idd);
		$("#rightTabs").tabs('add',{
			id : -2,
			title : n+'-'+idn,
			href : '__GROUP__/'+u+'/detail/id/'+idd,
			closable : true,
		});
		atit = '项目-'+idn;
	}else{
		if(idd!=otit){
			var tab = $("#rightTabs").tabs('getTab',atit);
			$("#rightTabs").tabs('update',{
				tab:tab,
				options:{
					title : n+'-'+idn,
					href : '__GROUP__/'+u+'/detail/id/'+idd,
					closable : true,
				} 
			});
			atit = tit;
			$("#rightTabs").tabs('select',atit);
		}else{
			$("#rightTabs").tabs('select',atit);
		}
	}
}
</script>
<div class="con-tb">
<table class="infobox linebox" width="100%" border="0" cellspacing="0" cellpadding="0" >
  <tr>
    <td class="rebg" width="17%"><label for="customer">发信人</label></td>
    <td width="21%">{$info.username}</td>
    <td class="rebg" width="17%"><label for="daily_date">发信时间</label></td>
    <td width="45%">{$info.sendtime}</td>
    </tr>
  <tr>
    <td class="rebg"><label for="user_id">标题</label></td>
    <td colspan="3">{$info.title}</td>
    </tr>
  <tr>
    <td class="rebg"><label for="purpose">內容</label></td>
    <td colspan="3">{$info.baseinfo.description}</td>
    </tr>
  </tbody>
  
  <tr>
    <td height="38" colspan="4" align="center"><a href="#" onclick="javascript:onCloseSmsDetail('{$uniqid}')" id="co{$uniqid}">关闭</a></td>
    </tr>
 </table>
</div>
<div id="addOpts"></div>